You are here: Routing Rules > Probability
Syntax samples
<probability> {<expression>}
Randomly selects a location listed in a block of routings based on a probability. Several probability routings should be used together and the sum of all probabilities must equal one. The entity will wait to be routed until the selected location has available capacity. Unlike most primary routings, an ALTERNATE and BACKUP routing may be specified after each PROBABILITY routing in a single routing block. If the selected location has no ALTERNATE routing and has no available capacity, the entity will wait for the location until it has available capacity.
The rule field of the Routing edit table only.
Components
<probability>
The chance of the routing being taken, expressed as a decimal less than one. All probabilities in a single routing block must add up to one. This number must be a value and may not be an expression.
<expression>
The total entities output from the process. This expression is valid only for the first routing of a routing block. For more information on this expression, see Processing.
Example
EntA completes an eight minute operation at Loc1, and routes to Loc2 80% of the time, Loc3 15% of the time, and to Loc4 5% of the time. If EntA selects Loc2 but the location has no available capacity, EntA will select an alternate location, Loc2A. If both Loc2 and Loc2A are down, EntA selects a backup location (Loc2B). Loc3 has an alternate location (Loc3A) in case it is unavailable, but has no backup location. Loc4 has neither an alternate location nor a backup location.
Process Table
Entity |
Location |
Operation (min) |
---|---|---|
EntA |
Loc1 |
WAIT8 |
Routing Table
Blk |
Output |
Destination |
Rule |
Move Logic |
---|---|---|---|---|
1 |
EntA |
Loc2 |
.800 1 |
|
EntA |
Loc2A |
ALT |
|
|
EntA |
Loc2B |
BACKUP |
|
|
EntA |
Loc3 |
.150 |
|
|
EntA |
Loc3A |
ALT |
|
|
Claim |
Loc4 |
.050 |
|